package cn.gzmli.dtt.common.service.log;

import cn.gzmli.dtt.common.entity.OperaterLog;
import cn.gzmli.dtt.common.entity.PageInfo;
import cn.gzmli.dtt.common.utils.BaseService;
import cn.gzmli.dtt.common.utils.BaseUtil;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;
import java.util.Map;

/**
 * @Descript
 * @Author xsx
 * @Date 2018/3/21
 */
@Service
@Transactional
public class OperatorLogService extends BaseService<OperaterLog> {
    public List<Map<String, Object>> getByCondition(Map<String, Object> condition, PageInfo pageInfo) throws Exception {
        StringBuilder sql = new StringBuilder();
        sql.append("SELECT * FROM operator_log WHERE 1=1 ");
        return BaseUtil.getData(sql, condition, pageInfo, this.getDao(), "id", false);
    }
}
